# -*- encoding:utf-8 -*-
import requests
#{'http': 'http://kzp2:kzp2@120.41.252.211:8088'}

s=requests.session();
a=s.get('http://gsxt.ngsh.gov.cn/ECPS/index.jspx')
#s.proxies={'http': 'http://kzp2:kzp2@120.41.252.211:8088'}
post_data = {'checkNo': '',
             'entName': '百度'}
s.headers['User-Agent']="Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/22.0.1207.1 Safari/537.1"
r=s.get('http://www.ahcredit.gov.cn/search.jspx')
print r
rea=s.get('http://www.ahcredit.gov.cn/validateCode.jspx')
print rea
s.headers['Referer']='http://www.ahcredit.gov.cn/searchList.jspx'
for i in range(3):
    res=s.post(url='http://www.ahcredit.gov.cn/searchList.jspx',data=post_data)

print res
print res.text
